package com.jinxin.platform.cdsmsmgr.pojo.enums;

/**
 * @Author 那个男人
 * @Date 2023/1/6 15:47
 * @Version 1.0
 */
public enum AuditStatusEnum {
    INIT("AUDIT_STATE_INIT","审核中"),
    PASS("AUDIT_STATE_PASS","审核通过"),
    NOT_PASS("AUDIT_STATE_NOT_PASS","审核未通过"),
    CANCEL("AUDIT_STATE_CANCEL","取消审核");

    private String code;
    private String desc;

    AuditStatusEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }
    // 普通方法
    public static String getDesc(String code) {
        for (AuditStatusEnum c : AuditStatusEnum.values()) {
            if (c.getCode().equals(code)) {
                return c.desc;
            }
        }
        return null;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
